import React from 'react';
import type { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';
import Icon from '@ant-design/icons';

const UploadSvg = () => (
  <svg
    width="16"
    height="16"
    viewBox="0 0 16 16"
    fill="currentColor"
    xmlns="http://www.w3.org/2000/svg"
  >
    <path
      fillRule="evenodd"
      clipRule="evenodd"
      d="M2 1C1.44772 1 1 1.44772 1 2V14C1 14.5523 1.44772 15 2 15H5.99993V9.50001H4.41312C3.85759 9.50001 3.60038 8.81014 4.02033 8.44646L7.60714 5.34018C7.83261 5.14492 8.16726 5.14492 8.39273 5.34018L11.9795 8.44645C12.3995 8.81013 12.1423 9.50001 11.5868 9.50001H9.99993V15H14C14.5523 15 15 14.5523 15 14V2C15 1.44772 14.5523 1 14 1H2Z"
    />
  </svg>
);

const UploadIcon = (props: Partial<CustomIconComponentProps>) => {
  return <Icon component={UploadSvg} {...props} />;
};

export default UploadIcon;
